# -*- coding: latin-1 -*-

from django.conf.urls.defaults import patterns, include

from django import conf

UV_REGEX = r'(?P<uv>[A-Z0-9]+)'
DEPARTEMENT_REGEX = r'(?P<departement>[A-Za-z]+)'
FILIERE_REGEX = r'(?P<filiere>[A-Za-z0-9]+)'
APP_ID_REGEX = r'(?P<app_id>[0-9]+)'

urlpatterns = patterns(
  '',
  (r'^admin/', include('django.contrib.admin.urls')))

if conf.settings.DEBUG:
  urlpatterns += patterns('',
    (r'^site_media/(?P<path>.*)$',
     'django.views.static.serve',
     {'document_root': conf.settings.MEDIA_ROOT}),
   )

# Critic
urlpatterns += patterns(
  '',
  (r'^', include('critic.urls')),
   )
